package base.generic;

import base.bean.*;

public class GenericMethodDemo {


    public static void main(String[] args) {
        Fruit fruit = new Fruit();
        Apple apple = new Apple();
        RedApple redApple = new RedApple();

        Orange orange = new Orange();

//        getExtendsDate(fruit);        异常
        getExtendsDate(apple);
        getExtendsDate(redApple);


    }


    public static <T extends Apple> T getExtendsDate(T item) {
        return item;
    }

//
//    public static <V super Animal>V getSuperData(V item) {
//        return item;
//    }


}
